import request from '@/utils/request'
import apiArr from '@/api'
export function jobfairList(params) {
  return request({
    url: apiArr.jobfairList,
    method: 'get',
    params
  })
}
export function jobfairDelete(data) {
  return request({
    url: apiArr.jobfairDelete,
    method: 'post',
    data
  })
}
export function jobfairAdd(data) {
  return request({
    url: apiArr.jobfairAdd,
    method: 'post',
    data
  })
}
export function jobfairEdit(params, method = 'post') {
  if (method == 'post') {
    return request({
      url: apiArr.jobfairEdit,
      method,
      data: params
    })
  } else {
    return request({
      url: apiArr.jobfairEdit,
      method,
      params
    })
  }
}
export function jobfairPositionInfo(params) {
  return request({
    url: apiArr.jobfairPositionInfo,
    method: 'get',
    params
  })
}
export function jobfairPositionAdd(data) {
  return request({
    url: apiArr.jobfairPositionAdd,
    method: 'post',
    data
  })
}
export function jobfairPositionDelete(data) {
  return request({
    url: apiArr.jobfairPositionDelete,
    method: 'post',
    data
  })
}
export function jobfairPositionBatchDelete(data) {
  return request({
    url: apiArr.jobfairPositionBatchDelete,
    method: 'post',
    data
  })
}
export function jobfairAreaDelete(data) {
  return request({
    url: apiArr.jobfairAreaDelete,
    method: 'post',
    data
  })
}
export function jobfairPositionPause(data) {
  return request({
    url: apiArr.jobfairPositionPause,
    method: 'post',
    data
  })
}
export function jobfairTplImgDelete(data) {
  return request({
    url: apiArr.jobfairTplImgDelete,
    method: 'post',
    data
  })
}
export function jobfairTplImgAdd(data) {
  return request({
    url: apiArr.jobfairTplImgAdd,
    method: 'post',
    data
  })
}
export function exhibitorsList(params) {
  return request({
    url: apiArr.exhibitorsList,
    method: 'get',
    params
  })
}
export function exhibitorsDelete(data) {
  return request({
    url: apiArr.exhibitorsDelete,
    method: 'post',
    data
  })
}
export function exhibitorsAudit(params) {
  return request({
    url: apiArr.exhibitorsAudit,
    method: 'post',
    data: params
  })
}
export function exhibitorsRecommend(params) {
  return request({
    url: apiArr.exhibitorsRecommend,
    method: 'post',
    data: params
  })
}
export function exhibitorsEdit(params, method = 'post') {
  if (method == 'post') {
    return request({
      url: apiArr.exhibitorsEdit,
      method,
      data: params
    })
  } else {
    return request({
      url: apiArr.exhibitorsEdit,
      method,
      params
    })
  }
}
export function exhibitorsAdd(params) {
  return request({
    url: apiArr.exhibitorsAdd,
    method: 'post',
    data: params
  })
}
export function jobfairCompanySearch(params) {
  return request({
    url: apiArr.jobfairCompanySearch,
    method: 'get',
    params
  })
}
export function getPosition(params) {
  return request({
    url: apiArr.getPosition,
    method: 'get',
    params
  })
}
export function positionTplList(params) {
  return request({
    url: apiArr.positionTplList,
    method: 'get',
    params
  })
}
export function positionTplDelete(data) {
  return request({
    url: apiArr.positionTplDelete,
    method: 'post',
    data
  })
}
export function positionTplAdd(data) {
  return request({
    url: apiArr.positionTplAdd,
    method: 'post',
    data
  })
}
export function positionTplInfo(params) {
  return request({
    url: apiArr.positionTplInfo,
    method: 'get',
    params
  })
}
export function positionTplPositionDelete(data) {
  return request({
    url: apiArr.positionTplPositionDelete,
    method: 'post',
    data
  })
}
export function positionTplPositionBatchDelete(data) {
  return request({
    url: apiArr.positionTplPositionBatchDelete,
    method: 'post',
    data
  })
}
export function positionTplPositionAdd(data) {
  return request({
    url: apiArr.positionTplPositionAdd,
    method: 'post',
    data
  })
}
export function positionTplAreaDelete(data) {
  return request({
    url: apiArr.positionTplAreaDelete,
    method: 'post',
    data
  })
}
export function positionTplImgDelete(data) {
  return request({
    url: apiArr.positionTplImgDelete,
    method: 'post',
    data
  })
}
export function positionTplImgAdd(data) {
  return request({
    url: apiArr.positionTplImgAdd,
    method: 'post',
    data
  })
}
export function jobfairPositionTpl() {
  return request({
    url: apiArr.jobfairPositionTpl,
    method: 'get'
  })
}
export function jobfairListAll() {
  return request({
    url: apiArr.jobfairListAll,
    method: 'get'
  })
}
export function retrospect(params) {
  return request({
    url: apiArr.retrospect,
    method: 'get',
    params
  })
}
export function retrospectDelete(data) {
  return request({
    url: apiArr.retrospectDelete,
    method: 'post',
    data
  })
}
export function retrospectAdd(data) {
  return request({
    url: apiArr.retrospectAdd,
    method: 'post',
    data
  })
}
export function qrcodeList(params) {
  return request({
    url: apiArr.qrcodeList,
    method: 'get',
    params
  })
}
export function exportIsExhibitors(params) {
  return request({
    url: apiArr.exportIsExhibitors,
    method: 'get',
    params
  })
}
export function exportCompanyJobsList(params) {
  return request({
    url: apiArr.exportCompanyJobsList,
    method: 'get',
    params
  })
}
export function jobfairModifyState(data) {
  return request({
    url: apiArr.jobfairModifyState,
    method: 'post',
    data
  })
}
